package ssm.implement;

import org.springframework.stereotype.Service;
import ssm.mapper.UserMapper;
import ssm.pojo.Order;
import ssm.pojo.User;

import java.util.List;

/**
 * Created by sally on 2016/8/19.
 */
@Service("userService")
public class UserServiceImpl implements UserMapper {
    private UserMapper userMapper;

    public List<Order> getUserOrders(int id) {
        return this.userMapper.getUserOrders(id);
    }

    public User getUserById(int id) {
        return this.userMapper.getUserById(id);
    }
}
